package geppetto.phraseHMM.phraseExtraction.extractedphrase;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Set;

public class ExtractedPhrasePairDataManager {
	protected static HashMap<String, ExtractedPhrasePairDataCalc> _data = new HashMap<String, ExtractedPhrasePairDataCalc>();
	protected static HashMap<String, Integer> _dataOrder = new HashMap<String, Integer>();

	public static Collection<ExtractedPhrasePairDataCalc> getDataValues() {
		return _data.values();
	}
	
	public static Set<String> getHeaders() {
		return _data.keySet();
	}
	
	public static void addData(String name, ExtractedPhrasePairDataCalc data){
		_dataOrder.put(name,getDataElementSize());
		_data.put(name,data);
	}
	
	public static ExtractedPhrasePairDataCalc getData(String name){
		return _data.get(name);
	}
	
	public static int getDataOrder(String name){
		return _dataOrder.get(name);
	}
	
	public static int getDataElementSize(){
		return _data.size();
	}
}
